<?php




require 'database.php';

$base=new Db;



$ids=$_GET['ids'];

$ret=[
    "code"=>200,
    "msg"=>'success',
    "data"=>"",
    "url"=>null,
    "wait"=>3
];


if($ids){
    
    $ids=explode(",",$ids);
    for ($i = 0; $i < count($ids); $i++) {
        $___r___=$base->doSql('delete from hkcms_archives where id="'.$ids[$i].'"');
    }
    if($___r___){
        
        return json($ret);
    }
    
}

